Optimal. Leaf size=613 \[ -\frac {2 e \sqrt {f+g x}}{3 \left (c d^2+a e^2\right ) (d+e x)^{3/2}}+\frac {4 e g \sqrt {f+g x}}{3 \left (c d^2+a e^2\right ) (e f-d g) \sqrt {d+e x}}+\frac {e \left (c d f+a e g-\sqrt {-a} \sqrt {c} (e f-d g)\right ) \sqrt {f+g x}}{\sqrt {-a} \left (\sqrt {c} d+\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (e f-d g) \sqrt {d+e x}}-\frac {e \left (c d f+a e g+\sqrt {-a} \sqrt {c} (e f-d g)\right ) \sqrt {f+g x}}{\sqrt {-a} \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (e f-d g) \sqrt {d+e x}}+\frac {\sqrt {c} \left (c d f+a e g+\sqrt {-a} \sqrt {c} (e f-d g)\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {c} f-\sqrt {-a} g} \sqrt {d+e x}}{\sqrt {\sqrt {c} d-\sqrt {-a} e} \sqrt {f+g x}}\right )}{\sqrt {-a} \left (\sqrt {c} d-\sqrt {-a} e\right )^{3/2} \left (c d^2+a e^2\right ) \sqrt {\sqrt {c} f-\sqrt {-a} g}}+\frac {\sqrt {c} \left (\sqrt {-a} c d f+\sqrt {-a} a e g+a \sqrt {c} (e f-d g)\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {c} f+\sqrt {-a} g} \sqrt {d+e x}}{\sqrt {\sqrt {c} d+\sqrt {-a} e} \sqrt {f+g x}}\right )}{a \left (\sqrt {c} d+\sqrt {-a} e\right )^{3/2} \left (c d^2+a e^2\right ) \sqrt {\sqrt {c} f+\sqrt {-a} g}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.99, antiderivative size = 613, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 7, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {922, 47, 37,
6857, 98, 95, 214} \begin {gather*} \frac {e \sqrt {f+g x} \left (-\sqrt {-a} \sqrt {c} (e f-d g)+a e g+c d f\right )}{\sqrt {-a} \sqrt {d+e x} \left (\sqrt {-a} e+\sqrt {c} d\right ) \left (a e^2+c d^2\right ) (e f-d g)}-\frac {e \sqrt {f+g x} \left (\sqrt {-a} \sqrt {c} (e f-d g)+a e g+c d f\right )}{\sqrt {-a} \sqrt {d+e x} \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (a e^2+c d^2\right ) (e f-d g)}+\frac {4 e g \sqrt {f+g x}}{3 \sqrt {d+e x} \left (a e^2+c d^2\right ) (e f-d g)}-\frac {2 e \sqrt {f+g x}}{3 (d+e x)^{3/2} \left (a e^2+c d^2\right )}+\frac {\sqrt {c} \left (\sqrt {-a} \sqrt {c} (e f-d g)+a e g+c d f\right ) \tanh ^{-1}\left (\frac {\sqrt {d+e x} \sqrt {\sqrt {c} f-\sqrt {-a} g}}{\sqrt {f+g x} \sqrt {\sqrt {c} d-\sqrt {-a} e}}\right )}{\sqrt {-a} \left (\sqrt {c} d-\sqrt {-a} e\right )^{3/2} \left (a e^2+c d^2\right ) \sqrt {\sqrt {c} f-\sqrt {-a} g}}+\frac {\sqrt {c} \left (a \sqrt {c} (e f-d g)+\sqrt {-a} c d f+\sqrt {-a} a e g\right ) \tanh ^{-1}\left (\frac {\sqrt {d+e x} \sqrt {\sqrt {-a} g+\sqrt {c} f}}{\sqrt {f+g x} \sqrt {\sqrt {-a} e+\sqrt {c} d}}\right )}{a \left (\sqrt {-a} e+\sqrt {c} d\right )^{3/2} \left (a e^2+c d^2\right ) \sqrt {\sqrt {-a} g+\sqrt {c} f}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 37
Rule 47
Rule 95
Rule 98
Rule 214
Rule 922
Rule 6857
Rubi steps
\begin {align*} \int \frac {\sqrt {f+g x}}{(d+e x)^{5/2} \left (a+c x^2\right )} \, dx &=\frac {\int \frac {c d f+a e g-c (e f-d g) x}{(d+e x)^{3/2} \sqrt {f+g x} \left (a+c x^2\right )} \, dx}{c d^2+a e^2}+\frac {(e (e f-d g)) \int \frac {1}{(d+e x)^{5/2} \sqrt {f+g x}} \, dx}{c d^2+a e^2}\\ &=-\frac {2 e \sqrt {f+g x}}{3 \left (c d^2+a e^2\right ) (d+e x)^{3/2}}+\frac {\int \left (\frac {a \sqrt {c} (e f-d g)+\sqrt {-a} (c d f+a e g)}{2 a \left (\sqrt {-a}-\sqrt {c} x\right ) (d+e x)^{3/2} \sqrt {f+g x}}+\frac {-a \sqrt {c} (e f-d g)+\sqrt {-a} (c d f+a e g)}{2 a \left (\sqrt {-a}+\sqrt {c} x\right ) (d+e x)^{3/2} \sqrt {f+g x}}\right ) \, dx}{c d^2+a e^2}-\frac {(2 e g) \int \frac {1}{(d+e x)^{3/2} \sqrt {f+g x}} \, dx}{3 \left (c d^2+a e^2\right )}\\ &=-\frac {2 e \sqrt {f+g x}}{3 \left (c d^2+a e^2\right ) (d+e x)^{3/2}}+\frac {4 e g \sqrt {f+g x}}{3 \left (c d^2+a e^2\right ) (e f-d g) \sqrt {d+e x}}-\frac {\left (c d f+a e g-\sqrt {-a} \sqrt {c} (e f-d g)\right ) \int \frac {1}{\left (\sqrt {-a}-\sqrt {c} x\right ) (d+e x)^{3/2} \sqrt {f+g x}} \, dx}{2 \sqrt {-a} \left (c d^2+a e^2\right )}-\frac {\left (c d f+a e g+\sqrt {-a} \sqrt {c} (e f-d g)\right ) \int \frac {1}{\left (\sqrt {-a}+\sqrt {c} x\right ) (d+e x)^{3/2} \sqrt {f+g x}} \, dx}{2 \sqrt {-a} \left (c d^2+a e^2\right )}\\ &=-\frac {2 e \sqrt {f+g x}}{3 \left (c d^2+a e^2\right ) (d+e x)^{3/2}}+\frac {4 e g \sqrt {f+g x}}{3 \left (c d^2+a e^2\right ) (e f-d g) \sqrt {d+e x}}+\frac {e \left (c d f+a e g-\sqrt {-a} \sqrt {c} (e f-d g)\right ) \sqrt {f+g x}}{\sqrt {-a} \left (\sqrt {c} d+\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (e f-d g) \sqrt {d+e x}}-\frac {e \left (c d f+a e g+\sqrt {-a} \sqrt {c} (e f-d g)\right ) \sqrt {f+g x}}{\sqrt {-a} \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (e f-d g) \sqrt {d+e x}}-\frac {\left (\sqrt {c} \left (c d f+a e g-\sqrt {-a} \sqrt {c} (e f-d g)\right )\right ) \int \frac {1}{\left (\sqrt {-a}-\sqrt {c} x\right ) \sqrt {d+e x} \sqrt {f+g x}} \, dx}{2 \sqrt {-a} \left (\sqrt {c} d+\sqrt {-a} e\right ) \left (c d^2+a e^2\right )}-\frac {\left (\sqrt {c} \left (c d f+a e g+\sqrt {-a} \sqrt {c} (e f-d g)\right )\right ) \int \frac {1}{\left (\sqrt {-a}+\sqrt {c} x\right ) \sqrt {d+e x} \sqrt {f+g x}} \, dx}{2 \sqrt {-a} \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (c d^2+a e^2\right )}\\ &=-\frac {2 e \sqrt {f+g x}}{3 \left (c d^2+a e^2\right ) (d+e x)^{3/2}}+\frac {4 e g \sqrt {f+g x}}{3 \left (c d^2+a e^2\right ) (e f-d g) \sqrt {d+e x}}+\frac {e \left (c d f+a e g-\sqrt {-a} \sqrt {c} (e f-d g)\right ) \sqrt {f+g x}}{\sqrt {-a} \left (\sqrt {c} d+\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (e f-d g) \sqrt {d+e x}}-\frac {e \left (c d f+a e g+\sqrt {-a} \sqrt {c} (e f-d g)\right ) \sqrt {f+g x}}{\sqrt {-a} \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (e f-d g) \sqrt {d+e x}}-\frac {\left (\sqrt {c} \left (c d f+a e g-\sqrt {-a} \sqrt {c} (e f-d g)\right )\right ) \text {Subst}\left (\int \frac {1}{\sqrt {c} d+\sqrt {-a} e-\left (\sqrt {c} f+\sqrt {-a} g\right ) x^2} \, dx,x,\frac {\sqrt {d+e x}}{\sqrt {f+g x}}\right )}{\sqrt {-a} \left (\sqrt {c} d+\sqrt {-a} e\right ) \left (c d^2+a e^2\right )}-\frac {\left (\sqrt {c} \left (c d f+a e g+\sqrt {-a} \sqrt {c} (e f-d g)\right )\right ) \text {Subst}\left (\int \frac {1}{-\sqrt {c} d+\sqrt {-a} e-\left (-\sqrt {c} f+\sqrt {-a} g\right ) x^2} \, dx,x,\frac {\sqrt {d+e x}}{\sqrt {f+g x}}\right )}{\sqrt {-a} \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (c d^2+a e^2\right )}\\ &=-\frac {2 e \sqrt {f+g x}}{3 \left (c d^2+a e^2\right ) (d+e x)^{3/2}}+\frac {4 e g \sqrt {f+g x}}{3 \left (c d^2+a e^2\right ) (e f-d g) \sqrt {d+e x}}+\frac {e \left (c d f+a e g-\sqrt {-a} \sqrt {c} (e f-d g)\right ) \sqrt {f+g x}}{\sqrt {-a} \left (\sqrt {c} d+\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (e f-d g) \sqrt {d+e x}}-\frac {e \left (c d f+a e g+\sqrt {-a} \sqrt {c} (e f-d g)\right ) \sqrt {f+g x}}{\sqrt {-a} \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (e f-d g) \sqrt {d+e x}}+\frac {\sqrt {c} \left (c d f+a e g+\sqrt {-a} \sqrt {c} (e f-d g)\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {c} f-\sqrt {-a} g} \sqrt {d+e x}}{\sqrt {\sqrt {c} d-\sqrt {-a} e} \sqrt {f+g x}}\right )}{\sqrt {-a} \left (\sqrt {c} d-\sqrt {-a} e\right )^{3/2} \left (c d^2+a e^2\right ) \sqrt {\sqrt {c} f-\sqrt {-a} g}}-\frac {\sqrt {c} \left (c d f+a e g-\sqrt {-a} \sqrt {c} (e f-d g)\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {c} f+\sqrt {-a} g} \sqrt {d+e x}}{\sqrt {\sqrt {c} d+\sqrt {-a} e} \sqrt {f+g x}}\right )}{\sqrt {-a} \left (\sqrt {c} d+\sqrt {-a} e\right )^{3/2} \left (c d^2+a e^2\right ) \sqrt {\sqrt {c} f+\sqrt {-a} g}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 1.68, size = 422, normalized size = 0.69 \begin {gather*} \frac {2 \sqrt {f+g x} \left (a e^4 (f+g x)+c d e \left (-6 d^2 g+6 e^2 f x+d e (7 f-5 g x)\right )\right )}{3 \left (c d^2+a e^2\right )^2 (-e f+d g) (d+e x)^{3/2}}-\frac {i \sqrt {c} \sqrt {-\left (\left (\sqrt {c} d+i \sqrt {a} e\right ) \left (\sqrt {c} f-i \sqrt {a} g\right )\right )} \tan ^{-1}\left (\frac {\sqrt {c d^2+a e^2} \sqrt {f+g x}}{\sqrt {-\left (\left (\sqrt {c} d+i \sqrt {a} e\right ) \left (\sqrt {c} f-i \sqrt {a} g\right )\right )} \sqrt {d+e x}}\right )}{\sqrt {a} \left (\sqrt {c} d-i \sqrt {a} e\right )^2 \sqrt {c d^2+a e^2}}+\frac {i \sqrt {c} \sqrt {-\left (\left (\sqrt {c} d-i \sqrt {a} e\right ) \left (\sqrt {c} f+i \sqrt {a} g\right )\right )} \tan ^{-1}\left (\frac {\sqrt {c d^2+a e^2} \sqrt {f+g x}}{\sqrt {-\left (\left (\sqrt {c} d-i \sqrt {a} e\right ) \left (\sqrt {c} f+i \sqrt {a} g\right )\right )} \sqrt {d+e x}}\right )}{\sqrt {a} \left (\sqrt {c} d+i \sqrt {a} e\right )^2 \sqrt {c d^2+a e^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(14860\) vs.
\(2(501)=1002\).
time = 0.08, size = 14861, normalized size = 24.24
method | result | size |
default | \(\text {Expression too large to display}\) | \(14861\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\sqrt {f+g\,x}}{\left (c\,x^2+a\right )\,{\left (d+e\,x\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________